<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'xiuGaiZhiWei.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<script type="text/javascript" src="qiang/zgq/js/jquery-1.8.3.js"></script>

	<link rel="stylesheet" href="qiang/zgq/css/cal.css"  type="text/css" />
	<script src="qiang/zgq/js/cal.js" type="text/javascript" charset="gbk"></script>
	<script type="text/javascript">
		$(function(){
			$("table tr:odd").css("background-color","#FFFFFF");
			$("[type='button']").click(function(){
				window.location.href="findZhiWeiByCondition";
			});
			
			
			
		});
	</script>
	
  </head>
  
  <body>
	<div id=all
		style="width:1050px ;height: 2000px;background-color: #C9C9C9;margin: 0 auto;position:relative;top:30px;">
		<div id="header"
			style="width: 1030px; height:100px;position:absolute;left: 10px;top:0px;background-color:white;">
			<%@ include file="header.jsp"%>
		</div>
		<div id="left"
			style="height: 1000px;width: 200px; position:absolute;left: 10px;top:100px;background-color:white;">
			<%@ include file="left_use.jsp"%>
		</div>
		
		
		<div id="right"
			style="height: 1000px;width: 810px; ;position:absolute;left: 230px;top:100px;
			background-color:#F4F4F4;">
			<div id="h11" style="width:782px;">
				<div id="d1">
        	<span>系统设置 >> 职位设置 >> 新增职位信息</span>
        </div>
    	<div id="d2">
        	<form action="updateZhiWei.action" method="post">
            <table>
            	<tr>
        		<td>职位编码：</td><td>
        			
        			<input type="text" name="zhiweibiao.code" value="${zhiweibiao.code}"/>
        			<input type="hidden" name="zhiweibiao.id" value="${zhiweibiao.id}"/></td>
            	</tr>
                <tr>
            		<td>职位名称：</td><td><input type="text"  name="zhiweibiao.name" value="${zhiweibiao.name}"/></td>
                </tr>
                <tr>
           			<td>职位分类</td><td><select id="input_a" name="zhiweibiao.classify">
        			<option value="---请选择---">---请选择---</option>
        			<option <c:if test="${zhiweibiao.classify=='管理'}">selected</c:if> value="管理">管理</option>
        			<option <c:if test="${zhiweibiao.classify=='技术'}">selected</c:if> value="技术">技术</option>
        			<option <c:if test="${zhiweibiao.classify=='实施'}">selected</c:if> value="实施">实施</option>
        			<option <c:if test="${zhiweibiao.classify=='测试'}">selected</c:if> value="测试">测试</option>
        			<option <c:if test="${zhiweibiao.classify=='售前'}">selected</c:if> value="售前">售前</option>
        			<option <c:if test="${zhiweibiao.classify=='财务'}">selected</c:if> value="财务">财务</option>
       				<option <c:if test="${zhiweibiao.classify=='行政'}">selected</c:if> value="行政">行政</option>
      			</select></td>
                </tr>
           		<tr>
                	<td> 所属部门:</td><td>
                		<select id="sele"  name="deptId" style="width188px;text-align: center; height: 25px;">
							<option value="0">--请选择--</option>
							<c:forEach items="${lisDepts}" var="i">
								<option <c:if test="${i.id==deptId}">selected</c:if> value="${i.id}">${i.dname}</option>
							</c:forEach>
						</select>
                	</td>
                </tr>
               <tr> 
                    <td>职位描述：</td><td><textarea  name="zhiweibiao.describe" id="u243_input">${zhiweibiao.describe}</textarea></td>
               </tr>
           		<tr>
           			<td>备注：</td><td><textarea  name="zhiweibiao.remark" id="u244_input">${zhiweibiao.remark}</textarea></td>
                </tr>
                <tr>
           			<td>是否启用：</td><td>
           			<input <c:if test="${zhiweibiao.status=='on'}">checked</c:if>  name="zhiweibiao.status" id="u247_input" type="checkbox" />
           			</td>
                </tr>
                <tr>
                	<td>
           				<span> <input type="submit" value="保存"/></span></td>
                    <td>
          				<span> <input type="button" value="返回"/></span>
                	</td>
                </tr>
            </table>
            </form>
        </div>
				
			
			</div>
		</div>
		
		
	</div>
  </body>
</html>
